﻿using System;
using System.Linq;
using System.Runtime.Serialization;
using Telerik.OpenAccess.Metadata;

namespace LINQPad.OpenAccess.Settings
{
    /// <summary>
    /// Backend - settings.
    /// </summary>
    [DataContract( Name = "Backend", Namespace = "" )]
    public class BackendSettings
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="BackendSettings" /> class.
        /// </summary>
        public BackendSettings( )
        {
        }

        /// <summary>
        /// Gets or sets a value indicating whether its the default backend.
        /// </summary>
        /// <value>
        /// <c>true</c> if its the default backend; otherwise, <c>false</c>.
        /// </value>
        [DataMember]
        public bool IsDefault { get; set; }
        /// <summary>
        /// Gets or sets the backend.
        /// </summary>
        /// <value>
        /// The backend.
        /// </value>
        [DataMember]
        public Backend? Backend { get; set; }
    }
}
